/**
 * Generate time : 2011-11-16 6:10:13
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLRiskReview table comment : 隐患复查记录
 */
public class ZMCLRiskReview extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdRiskRecordId = " "; /* 隐患记录ID */
	private String fdRiskHandleId = " "; /* 隐患处理ID */
	private String fdRiskModifyId = " "; /* 隐患整改ID */
	private String fdRecheckerDepartmentId = " "; /* 复查部门ID */
	private String fdRecheckerDepartment = " "; /* 复查部门 */
	private String fdRecheckDate = " "; /* 复查日期 */
	private String fdCondition = " "; /* 复查情况描述 */
	private String fdRecheckPeopleId = " "; /* 复查人ID */
	private String fdRecheckPeople = " "; /* 复查人 */
	private String fdIsRedo = " "; /* 是否重新整改 */
	private String fdRedoSuggestion = " "; /* 重新整改意见 */
	private String fdCreateTime = " "; /* 创建时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskHandleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患处理ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskModifyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患整改ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecheckerDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("复查部门ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecheckerDepartment");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("复查部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecheckDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("复查日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCondition");
		eiColumn.setFieldLength(1000);
		eiColumn.setDescName("复查情况描述");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecheckPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("复查人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecheckPeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("复查人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsRedo");
		eiColumn.setFieldLength(5);
		eiColumn.setDescName("是否重新整改");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRedoSuggestion");
		eiColumn.setFieldLength(1000);
		eiColumn.setDescName("重新整改意见");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLRiskReview() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdRiskRecordId - 隐患记录ID
	 * 
	 * @return the fdRiskRecordId
	 */
	public String getFdRiskRecordId() {
		return this.fdRiskRecordId;
	}

	/**
	 * set the fdRiskRecordId - 隐患记录ID
	 */
	public void setFdRiskRecordId(String fdRiskRecordId) {
		this.fdRiskRecordId = fdRiskRecordId;
	}

	/**
	 * get the fdRiskHandleId - 隐患处理ID
	 * 
	 * @return the fdRiskHandleId
	 */
	public String getFdRiskHandleId() {
		return this.fdRiskHandleId;
	}

	/**
	 * set the fdRiskHandleId - 隐患处理ID
	 */
	public void setFdRiskHandleId(String fdRiskHandleId) {
		this.fdRiskHandleId = fdRiskHandleId;
	}

	/**
	 * get the fdRiskModifyId - 隐患整改ID
	 * 
	 * @return the fdRiskModifyId
	 */
	public String getFdRiskModifyId() {
		return this.fdRiskModifyId;
	}

	/**
	 * set the fdRiskModifyId - 隐患整改ID
	 */
	public void setFdRiskModifyId(String fdRiskModifyId) {
		this.fdRiskModifyId = fdRiskModifyId;
	}

	/**
	 * get the fdRecheckerDepartmentId - 复查部门ID
	 * 
	 * @return the fdRecheckerDepartmentId
	 */
	public String getFdRecheckerDepartmentId() {
		return this.fdRecheckerDepartmentId;
	}

	/**
	 * set the fdRecheckerDepartmentId - 复查部门ID
	 */
	public void setFdRecheckerDepartmentId(String fdRecheckerDepartmentId) {
		this.fdRecheckerDepartmentId = fdRecheckerDepartmentId;
	}

	/**
	 * get the fdRecheckerDepartment - 复查部门
	 * 
	 * @return the fdRecheckerDepartment
	 */
	public String getFdRecheckerDepartment() {
		return this.fdRecheckerDepartment;
	}

	/**
	 * set the fdRecheckerDepartment - 复查部门
	 */
	public void setFdRecheckerDepartment(String fdRecheckerDepartment) {
		this.fdRecheckerDepartment = fdRecheckerDepartment;
	}

	/**
	 * get the fdRecheckDate - 复查日期
	 * 
	 * @return the fdRecheckDate
	 */
	public String getFdRecheckDate() {
		return this.fdRecheckDate;
	}

	/**
	 * set the fdRecheckDate - 复查日期
	 */
	public void setFdRecheckDate(String fdRecheckDate) {
		this.fdRecheckDate = fdRecheckDate;
	}

	/**
	 * get the fdCondition - 复查情况描述
	 * 
	 * @return the fdCondition
	 */
	public String getFdCondition() {
		return this.fdCondition;
	}

	/**
	 * set the fdCondition - 复查情况描述
	 */
	public void setFdCondition(String fdCondition) {
		this.fdCondition = fdCondition;
	}

	/**
	 * get the fdRecheckPeopleId - 复查人ID
	 * 
	 * @return the fdRecheckPeopleId
	 */
	public String getFdRecheckPeopleId() {
		return this.fdRecheckPeopleId;
	}

	/**
	 * set the fdRecheckPeopleId - 复查人ID
	 */
	public void setFdRecheckPeopleId(String fdRecheckPeopleId) {
		this.fdRecheckPeopleId = fdRecheckPeopleId;
	}

	/**
	 * get the fdRecheckPeople - 复查人
	 * 
	 * @return the fdRecheckPeople
	 */
	public String getFdRecheckPeople() {
		return this.fdRecheckPeople;
	}

	/**
	 * set the fdRecheckPeople - 复查人
	 */
	public void setFdRecheckPeople(String fdRecheckPeople) {
		this.fdRecheckPeople = fdRecheckPeople;
	}

	/**
	 * get the fdIsRedo - 是否重新整改
	 * 
	 * @return the fdIsRedo
	 */
	public String getFdIsRedo() {
		return this.fdIsRedo;
	}

	/**
	 * set the fdIsRedo - 是否重新整改
	 */
	public void setFdIsRedo(String fdIsRedo) {
		this.fdIsRedo = fdIsRedo;
	}

	/**
	 * get the fdRedoSuggestion - 重新整改意见
	 * 
	 * @return the fdRedoSuggestion
	 */
	public String getFdRedoSuggestion() {
		return this.fdRedoSuggestion;
	}

	/**
	 * set the fdRedoSuggestion - 重新整改意见
	 */
	public void setFdRedoSuggestion(String fdRedoSuggestion) {
		this.fdRedoSuggestion = fdRedoSuggestion;
	}

	/**
	 * get the fdCreateTime - 创建时间
	 * 
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}

	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRiskRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskRecordId")), fdRiskRecordId));
		setFdRiskHandleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskHandleId")), fdRiskHandleId));
		setFdRiskModifyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskModifyId")), fdRiskModifyId));
		setFdRecheckerDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecheckerDepartmentId")), fdRecheckerDepartmentId));
		setFdRecheckerDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecheckerDepartment")), fdRecheckerDepartment));
		setFdRecheckDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecheckDate")), fdRecheckDate));
		setFdCondition(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCondition")), fdCondition));
		setFdRecheckPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecheckPeopleId")), fdRecheckPeopleId));
		setFdRecheckPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecheckPeople")), fdRecheckPeople));
		setFdIsRedo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsRedo")), fdIsRedo));
		setFdRedoSuggestion(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRedoSuggestion")), fdRedoSuggestion));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdRiskRecordId", StringUtils.toString(fdRiskRecordId, eiMetadata.getMeta("fdRiskRecordId")));
		map.put("fdRiskHandleId", StringUtils.toString(fdRiskHandleId, eiMetadata.getMeta("fdRiskHandleId")));
		map.put("fdRiskModifyId", StringUtils.toString(fdRiskModifyId, eiMetadata.getMeta("fdRiskModifyId")));
		map.put("fdRecheckerDepartmentId", StringUtils.toString(fdRecheckerDepartmentId, eiMetadata.getMeta("fdRecheckerDepartmentId")));
		map.put("fdRecheckerDepartment", StringUtils.toString(fdRecheckerDepartment, eiMetadata.getMeta("fdRecheckerDepartment")));
		map.put("fdRecheckDate", StringUtils.toString(fdRecheckDate, eiMetadata.getMeta("fdRecheckDate")));
		map.put("fdCondition", StringUtils.toString(fdCondition, eiMetadata.getMeta("fdCondition")));
		map.put("fdRecheckPeopleId", StringUtils.toString(fdRecheckPeopleId, eiMetadata.getMeta("fdRecheckPeopleId")));
		map.put("fdRecheckPeople", StringUtils.toString(fdRecheckPeople, eiMetadata.getMeta("fdRecheckPeople")));
		map.put("fdIsRedo", StringUtils.toString(fdIsRedo, eiMetadata.getMeta("fdIsRedo")));
		map.put("fdRedoSuggestion", StringUtils.toString(fdRedoSuggestion, eiMetadata.getMeta("fdRedoSuggestion")));
		map.put("fdCreateTime", StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));

		return map;

	}
}